<title>Página de Cadastro de Administradores</title>
<link type="text/css" rel="stylesheet" href="../config/estilo.css" />

<?php
	echo '<script type="text/javascript">';
		include_once ("config/valida.js");
	echo '</script>';
	
	if ($vnivel == 1)
	{
		echo '<form action="index.php?page=admins/cadastrar" name="cadastro" method="post" onSubmit="return validaform(2)">
				<fieldset><legend>Cadastro de Administrador</legend>
					<label>Nome:</label><input type="text" name="nome"/><br />
					<label>Matrícula:</label><input type="text" name="matricula"/><br />
					<label>Senha:</label><input type="password" name="senha"/><br />
					<input type="reset" value="Limpar campos" name="reset">
					<input type="submit" value="Cadastrar" name="cadastrar">
				</fieldset>
			  </form>';
	}
	else
	{
		echo '<script type="text/javascript">
				window.location="index.php";
			  </script>';
	}
?>